package mirrormonkey.rpc.tools.multicall.entities;

import mirrormonkey.core.annotations.ClientSideConstructor;
import mirrormonkey.core.annotations.EntityHierarchy;
import mirrormonkey.framework.entity.EntityData;
import mirrormonkey.rpc.tools.multicall.specs.IntegerRpcSpec;

@EntityHierarchy
public class IntegerRpc implements IntegerRpcSpec {

	public EntityData data;

	public int value;

	@ClientSideConstructor
	public IntegerRpc() {
		value = 0;
	}

	@Override
	public void setData(EntityData data) {
		this.data = data;
	}

	@Override
	public EntityData getData() {
		return data;
	}

	@Override
	public int setValue(int value) {
		this.value = value;
		return value;
	}

}
